﻿/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/

using System;
using System.Diagnostics.Eventing.Reader;

namespace CoreShop.Model
{
    /// <summary>
    /// 会员支付参数实体
    /// </summary>
    public class VipPayParaDto
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public long vipId { set; get; } = 0;

        /// <summary>
        /// 结账金额
        /// </summary>
        public decimal amount { set; get; } = 0;

        /// <summary>
        ///  积分类型
        /// </summary>
        public int billType { set; get; } = 1;

        /// <summary>
        /// 
        /// </summary>
        public int organizationId { set; get; } = 1;

        /// <summary>
        ///  
        /// </summary>
        public string mchNo { set; get; }


        /// <summary>
        /// 
        /// </summary>
        public long branchId { set; get; } = 0;

        /// <summary>
        /// 
        /// </summary>
        public int sourceBillType { set; get; } = 1;

        /// <summary>
        ///  
        /// </summary>
        public string businessType { set; get; }

        /// <summary>
        /// 
        /// </summary>
        public string password { set; get; } = "123456";

        /// <summary>
        ///  0验证密码，1不用
        /// </summary>
        public int checkPassword { set; get; } = 1;
    }


    /*
    JObject keyValues = new JObject();
    keyValues.Add(new JProperty("vipId", vipId));
    //金额
    keyValues.Add(new JProperty("amount", amt));
    //积分类型
    keyValues.Add(new JProperty("billType", 1));
    keyValues.Add(new JProperty("organizationId", 1));
    keyValues.Add(new JProperty("mchNo", mchNo));
    keyValues.Add(new JProperty("branchId", branchId));
    //来源
    keyValues.Add(new JProperty("sourceBillType", 1));
    keyValues.Add(new JProperty("businessType", PAYTYPE.BALANCE));
    //密码
    keyValues.Add(new JProperty("password", password));
    //密码
    keyValues.Add(new JProperty("checkPassword", 1));
    */
}